//
//  testViewController.swift
//  weibo
//
//  Created by swift on 17/2/23.
//  Copyright © 2017年 jason. All rights reserved.
//

import UIKit

class testViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        let a = navigationController?.childViewControllers.count ?? 0
          title = "\(a)"
            }
    @objc fileprivate func showNext(){
    let vc  = testViewController()
     navigationController?.pushViewController(vc, animated: true)
    }
 
}
extension testViewController{
    override func setuptableview() {
        super.setuptableview()
//        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
        navitem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
        
    }
}
